import request from '@/utils/request';
import Cookies from 'js-cookie';

export function getUnapprove(){
    return request({
        url: '/tienchin/contract/unapprove',
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}

export function getCommitted(){
    return request({
        url: '/tienchin/contract/committed_task',
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}

export function getApprove(){
    return request({
        url: '/tienchin/contract/approved',
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}

export function getView(contractId){
    return request({
        url: '/tienchin/contract/views/' + contractId,
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}

export function getContractStatus(){
    return request({
        url: 'http://47.104.167.34:9100/prod-api/system/dict/data/type/contract_status',
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}
export function getActivityType(){
    return request({
        url: 'http://47.104.167.34:9100/prod-api/system/dict/data/type/activity_type',
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}
export function getCourse(){
    return request({
        url: 'http://47.104.167.34:9100/prod-api/system/dict/data/type/course_type',
        method: 'get',
        headers: {
            'Authorization': 'Bearer'+ Cookies.get('token')
        }
    });
}